import {createRouter,createWebHashHistory} from 'vue-router'

import Layout from '../views/Main.vue'
import Login from '../views/login/index.vue'


const routes = [
    {
        path: '/login',
        name: '登录',
        component: Login
    },
    {
        path: '/',
        name: 'main',
        component: Layout,
        children:[

        ]
    }
]
const router=createRouter({
    routes,
    //路由匹配模式
    history: createWebHashHistory()
})

export default router
